package com.wangp.springbootsource;

import java.util.Properties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
//@PropertySource({"demo.properties"})
public class SpringBootSourceApplication {

    public static void main(String[] args) {

        SpringApplication springApplication = new SpringApplication(SpringBootSourceApplication.class);
        Properties properties = new Properties();
        properties.setProperty("key", "value");
        //优先级1
        springApplication.setDefaultProperties(properties);
        springApplication.run(args);
    }

}
